package entity;

import dao.UserDao;

public class Risk {	
	
	private int    id;
	private String title;
	private Level  possibility;
	private Level  influence;
	private int	   committedBy;
	private int    tracer;
	private String description;
	
	
	public int getId() {
		return id;
	}
	public void setId(int id) {
		this.id = id;
	}
	public String getTitle() {
		return title;
	}
	public void setTitle(String title) {
		this.title = title;
	}
	public Level getPossibility() {
		return possibility;
	}
	public void setPossibility(Level possibility) {
		this.possibility = possibility;
	}
	public Level getInfluence() {
		return influence;
	}
	public void setInfluence(Level influence) {
		this.influence = influence;
	}
	public int getCommittedBy() {
		return committedBy;
	}
	public void setCommittedBy(int committedBy) {
		this.committedBy = committedBy;
	}
	public int getTracer() {
		return tracer;
	}
	public void setTracer(int tracer) {
		this.tracer = tracer;
	}
	public String getDescription() {
		return description;
	}
	public void setDescription(String description) {
		this.description = description;
	}
	
	public String getCommitterUsername(){
		return UserDao.getUsername(committedBy);
	}
	
}
